initial commit
[Cyberpunk Pendant] / SOFTWARE / make
1 #!/bin/bash
2
3 targetProjectFile=pendent
4 AVRGCC=avr-gcc
5
6 export DEFINES="-mmcu=attiny10 -DBOARD=1 -fno-strict-aliasing -Wattributes"
7
8 rm *.hex *.elf
9
10 $AVRGCC $DEFINES -Wall -O1 -std=gnu99 -o $targetProjectFile.o -c $targetProjectFile.c
11 $AVRGCC $DEFINES -Wl,-Map=$targetProjectFile.map $targetProjectFile.o  -o $targetProjectFile.elf
12 avr-objcopy -O ihex $targetProjectFile.elf $targetProjectFile.hex
13
14 echo "Compilatoin done"
15 exit
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717